package com.wildfire.dao;


import com.wildfire.dto.AuthDto;
import org.apache.ibatis.annotations.*;
import java.util.List;

@Mapper
public interface AuthDao {
    @Select("SELECT * from t_auth")
    List<AuthDto> getAuthList();

    @Select("SELECT name from t_role where id in (select role_id from t_role_auth where auth_id=#{authId})")
    List<String> getAccessByAuth(Long authId);

}
